﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Kale.Db.Sql
{
   public static class PasswordHelper
   {
      private static SHA512Managed _hashAlgorithm = new SHA512Managed();

      public static byte[] HashPassword(string password)
      {
         return _hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(password));
      }
   }
}
